AOD: Disable MC tables for data - #13105
Conversation
|
Undrafting to start CI. |
Now MC tables (even empty ones) are only written to disk when MC is active. Signed-off-by: Felix Schlepper <felix.schlepper@cern.ch>
|
Hi, @jgrosseo, these changes would stop writing empty MC trees for data. I want to avoid breaking stuff downstream, do you have suggestion on what else I could test or anything that would immediately speak against doing this? |
|
Did you run |
|
Yes, I ran 'sim_challenge.sh' successfully. |
|
Other than "breaking" the current generalization, the code seems to do what is expected. I thinks this was tested long time ago and the effect on the AOD size was really marginal. Would it make more sense to actually provide the configuration to the AOD writer to store only certain subset of the tables created by AOD producer? It is more flexible. |
|
What are the benefits of doing this apart from a few bytes? I fear this might just add extra complication in the code without having a major impact on users. The data format specification of AOD tells that these tables are present. Empty data is probably easier to handle than missing tables. |
Where does the specification tell you that for data you have MC tables? :) |
Well, I thought you had a well-defined list of AOD tables written in the specification according to https://aliceo2group.github.io/analysis-framework/docs/datamodel/ao2dTables.html. If some of them are optional it is just fine with me. Maybe the doc would need to be more specific about this. |
Yes, quite some are optional: E.g. Run 2 vs. Run 3. And for now MC tables have always been there but it was more a limitation that no one made the effort to make add the Several times people got confused why our data has MC tables. On the size-level it does not save much of course. An advantage of not having the tables is that the merger does not merge them (even if empty, it costs a few cycles in reco). |
|
Error while checking build/O2/fullCI for 11c0f56 at 2024-05-21 00:36: Full log here. |
Now MC tables (even empty ones) are only written to disk when MC is active.
Marginally effects file size (reduction by a few KBs, e.g. tree headers).
Tested on local MC production generated with
DOANALYSIS=1 ./O2DPG_pp_minbias.shand with files from apass1_debug_build97 to reproduce data AO2D and run an analysis on this.